﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cartonline.aspx.cs" Inherits="views_cartonline" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 215px;
        }
        .style2
        {
            width: 243px;
        }
        .style5
        {
            width: 65px;
        }
        .style8
        {
            width: 250px;
        }
        .style10
        {
            width: 233px;
        }
        p
        {
            margin: 10px;
            height: 25px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="shoppingCartDetails">
        <div class="detailsHeader">
            Shopping Cart</div>
        <div class="innerContainer">
            <table style="width: 643px">
                <tbody runat="server" id="Cart">
                    <tr class="lineItemHeaderRow">
                        <th class="style2">
                            Product
                        </th>
                        <th class="style5">
                            Qty
                        </th>
                        <th class="style10">
                            Price
                        </th>
                        <th class="style8">
                            Total Price
                        </th>
                        <th class="style1">
                        </th>
                    </tr>
                    <asp:Repeater ID="rpt_giohang" runat="server" OnItemCommand="rpt_giohang_ItemCommand">
                        <ItemTemplate>
                            <tr class="lineItemRows ">
                                <td class="productCell">
                                    <div class="lineItemProductImage">
                                        <a href="../index.aspx?proid=<%# Eval("ID") %>" target="_parent">
                                            <img style="border-width: 0px;" alt="" src='<%# Eval("Image","../{0}") %>'></a>
                                    </div>
                                    <div class="lineItemProdDesc">
                                        <div class="lineItemProductName">
                                            <a href="../index.aspx?proid=<%# Eval("ID") %>" target="_top">
                                                <%# Eval("DisplayName")%></a>
                                        </div>
                                    </div>
                                </td>
                                <td class="qtyCell">
                                    <asp:TextBox ID="txtQuantity" runat="server" Width="50" Text='<%# Eval("Quantity") %>'></asp:TextBox>
                                </td>
                                <td class="priceCell">
                                    <div class="featurePrice">
                                        <span class="strikePrice">VND
                                            <%# Eval("Price") %></span><br />
                                        <span class="salePrice hasStrike">VND
                                            <%# Eval("NewPrice") %></span>
                                    </div>
                                </td>
                                <td class="totalCell">
                                    VND
                                    <%# Eval("total")%>
                                </td>
                                <td>
                                    <asp:LinkButton ID="lbtUpdate" CommandArgument='<%# Eval("ID") %>' CommandName="UpdateQuantity"
                                        runat="server">Cập nhật</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div class="ClearFloats">
            </div>
        </div>
        <div id="promoCodeAndSubTotalContainer">
            <!-- No PromoCode Box on Shopping Cart Page for PFC customers without the above ref.-->
            <div class="subTotalContainer">
                <span class="priceTotals">Subtotal:
                    <asp:Label ID="lbSubtotal" runat="server" Text=""></asp:Label></span><br>
            </div>
            <div class="ClearFloats">
            </div>
        </div>
        <div style="width: 700px; height: auto;">
            <div style="width: 250px; height: auto; float: left;">
                <p style="text-align: right;">
                    Họ Tên :</p>
                <p style="text-align: right;">
                    Ngày Giao Hàng :</p>
                <p style="text-align: right;">
                    Email :</p>
                <p style="text-align: right;">
                    Số Điện Thoại :</p>
                <p style="text-align: right;">
                    Địa Chỉ :</p>
                <p style="text-align: right;">
                    Địa Chỉ Giao Hàng :</p>
                <p style="text-align: right;">
                    Ghi Chú :</p>
            </div>
            <div style="width: 450px; height: auto; float: left;">
                <p>
                    <asp:TextBox ID="txtfullname" runat="server" Width="200px" ReadOnly="True"></asp:TextBox>
                </p>
                <p>
                    <asp:TextBox ID="txtdeliverydate" runat="server" Width="200px"></asp:TextBox>
                </p>
                <p>
                    <asp:TextBox ID="txtemail" runat="server" Width="200px" ReadOnly="True"></asp:TextBox>
                </p>
                <p>
                    <asp:TextBox ID="txtfone" runat="server" Width="200px" ReadOnly="True"></asp:TextBox>
                </p>
                <p>
                    <asp:TextBox ID="txtaddress" runat="server" Width="420px" ReadOnly="True"></asp:TextBox></p>
                <p>
                    <asp:TextBox ID="txtaddress2" runat="server" Width="420px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtaddress2"
                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                </p>
                <p style="height: 200px;">
                    <asp:TextBox ID="txtnote" runat="server" Height="198px" TextMode="MultiLine" Width="420px"></asp:TextBox></p>
                <p>
                    <asp:Button ID="Button1" runat="server" Text="Mua Hàng" Width="100" OnClick="Button1_Click" /></p>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
